# -*- encoding: utf-8 -*-
"""

PyCharm 正弦序列.py
2024年10月22日19时24分
by wenyang

文件主要内容:


"""
import numpy as np
import matplotlib.pyplot as plt


def main():
    fs = 1# 抽样率
    fw = 0.1 # 正弦波频率
    phi = 0
    A = 4
    x = np.arange(-10, 10, 1 / fs)
    y = A * np.sin(2 * fw * np.pi * x + phi)
    plt.stem(x, y)
    plt.show()



if __name__ == "__main__":
    main()
